import { defaultTheme } from 'vuepress'
import { searchPlugin } from '@vuepress/plugin-search'

export default {
  base: '/fok-ui-vue3/',
  lang: 'zh-CN',
  title: 'fok-ui',   //系统标题
  description: '加载失败',  // 系统logo加载失败显示
  plugins: [searchPlugin()],
  head: [
    ['link',{rel:'stylesheet',href:'/fok-ui-vue3/index.css'}],
    // ['script',{src:'https://api.map.baidu.com/api?v=3.0&ak=kzaYsd8YP44G19eA43ZgYD4c6xdwHaxF&s=1&callback=onBMapCallback'}],
  ],
  theme: defaultTheme({
    // 主题设置
    repo: 'https://codeup.aliyun.com/627e1061cfea268afc221d26/Basic-framework/front-basic-components/fok-ui-vue3', // 代码仓地址
    repoLabel: 'Codeup',  // Codeup 
    navbar: [
      { text: '快速上手', link: '/guide/install' },
      { text: '组件', link: '/components/brinch' },
      { text: 'hooks', link: '/hooks/useTrendsComp' },
      { text: '指令', link: '/directive/code' },
      { text: '请求', link: '/service/cacheService' },
      { text: '更新日志', link: 'https://alidocs.dingtalk.com/i/nodes/KGZLxjv9VGY3EgZnH5xdpGYk86EDybno?utm_scene=team_space' },
      { text: 'js库', link: 'http://172.16.88.7/fok-js/index.html' },
      { text: 'his库', link: 'http://172.16.88.7/fok-library-his/guide/install.html' },
    ],
    sidebar: require('../components/sidebar'), //侧边栏菜单
    editLink: false,
    editLinkText: '编辑此页',
    editLinkPattern: '',
    sidebarDepth: 2,
    lastUpdated: true,
    lastUpdatedText: '更新时间',
    contributors: false,
    contributorsText: '贡献者',
    notFound: [
      '这里什么都没有',
      '我们怎么到这来了？',
      '这是一个 404 页面',
      '看起来我们进入了错误的链接',
    ],
    backToHome: '返回首页',

    // a11y
    openInNewWindow: '在新窗口打开',
    toggleDarkMode: '切换夜间模式',
    toggleSidebar: '切换侧边栏',
  }),
}
